import {useRouter} from "vue-router";
import {PageTitle} from "./utils/userType";


export function useBasicInformationBorder() {
    const router = useRouter()

    function To(types: PageTitle) {
        let path: string;
        if (types === 'basic') {
            return
        } else if (types === 'edu') {
            return;
        } else if (types === 'work') {
            return;
        } else if (types === 'like') {
            path = '/'
        } else if (types === 'self') {
            //TODO 创作界面
            alert("待开发")
            path = ''
        }

        router.push(path).then()
    }

    return {
        To
    }
}